package org.system.core.service.monitor;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.system.core.domain.entity.SysLoginInfo;
import org.system.core.mapper.monitor.SysLoginInfoMapper;

import java.util.List;

/**
 * @author baoRoot
 */
@Service
public class SysLogininforService {

    @Autowired
    private SysLoginInfoMapper loginInfoMapper;

    public void insertLoginInfo(SysLoginInfo loginInfo) {
        loginInfoMapper.insertLoginInfo(loginInfo);
    }

    public List<SysLoginInfo> selectLogininforList(SysLoginInfo loginInfo) {
        return loginInfoMapper.selectLoginInfoList(loginInfo);
    }

    public int deleteLoginInfoByIds(Long[] infoIds) {
        return loginInfoMapper.deleteLoginInfoByIds(infoIds);
    }

    public void cleanLoginInfo() {
        loginInfoMapper.cleanLoginInfo();
    }

}
